package com.type.vo;

import org.springframework.web.multipart.MultipartFile;

/**
 * 메일 VO (수신자는 따로)
 * @author daou-ljhjoin
 *
 */
public class MailVO {
	private int mailNo;				//primary key	(페이징처리에 쓰임)
	private String title;			//제목
	private String sender;			//발신자 번호
	private String content;			//본문 내용
	private String sendDate;		//보낸시간
	private String receiveDate;		//받아서 확인한 시간
	private int receiptChk;			//수신 확인 여부 (0,1,2  로 수신했는지 안했는지 구분)
	private int recycleBin;			//휴지통 여부 (0,1,2 로 휴지통메일인지 아닌지 구분)
	private int cubbyhole;			//개인 보관함 여부 (0,1,2 로 보관함 메일인지 아닌지 구분)
	private String attachedFile;	//첨부파일이름 (DB에 저장할..)
	private MultipartFile upfile;	//실제 첨부파일	(DB에는 저장안함,서버에 저장)
	public MailVO() {
		super();
	}
	public MailVO(int mailNo, String title, String sender, String content,
			String sendDate, String receiveDate, int receiptChk,
			int recycleBin, int cubbyhole, String attachedFile,
			MultipartFile upfile) {
		super();
		this.mailNo = mailNo;
		this.title = title;
		this.sender = sender;
		this.content = content;
		this.sendDate = sendDate;
		this.receiveDate = receiveDate;
		this.receiptChk = receiptChk;
		this.recycleBin = recycleBin;
		this.cubbyhole = cubbyhole;
		this.attachedFile = attachedFile;
		this.upfile = upfile;
	}
	public int getMailNo() {
		return mailNo;
	}
	public void setMailNo(int mailNo) {
		this.mailNo = mailNo;
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getSender() {
		return sender;
	}
	public void setSender(String sender) {
		this.sender = sender;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getSendDate() {
		return sendDate;
	}
	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}
	public String getReceiveDate() {
		return receiveDate;
	}
	public void setReceiveDate(String receiveDate) {
		this.receiveDate = receiveDate;
	}
	public int getReceiptChk() {
		return receiptChk;
	}
	public void setReceiptChk(int receiptChk) {
		this.receiptChk = receiptChk;
	}
	public int getRecycleBin() {
		return recycleBin;
	}
	public void setRecycleBin(int recycleBin) {
		this.recycleBin = recycleBin;
	}
	public int getCubbyhole() {
		return cubbyhole;
	}
	public void setCubbyhole(int cubbyhole) {
		this.cubbyhole = cubbyhole;
	}
	public String getAttachedFile() {
		return attachedFile;
	}
	public void setAttachedFile(String attachedFile) {
		this.attachedFile = attachedFile;
	}
	public MultipartFile getUpfile() {
		return upfile;
	}
	public void setUpfile(MultipartFile upfile) {
		this.upfile = upfile;
	}
	@Override
	public String toString() {
		return "MailVO [mailNo=" + mailNo + ", title=" + title + ", sender="
				+ sender + ", content=" + content + ", sendDate=" + sendDate
				+ ", receiveDate=" + receiveDate + ", receiptChk=" + receiptChk
				+ ", recycleBin=" + recycleBin + ", cubbyhole=" + cubbyhole
				+ ", attachedFile=" + attachedFile + ", upfile=" + upfile + "]";
	}
}